package com.example.demo1;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:何人亮
 * Date:2025-03-08
 * 15:59
 */
@RestController
@RequestMapping("resqust")
public class Hello {
    @RequestMapping("/hello")
    public String hello(){
         return "hello ,Spring boot";
    }

    @RequestMapping("login")
    public String login(String userName,String passWard){
        return userName+" "+passWard;
    }


    @RequestMapping("/test")
    @ResponseBody
    public String test(){
        return "<h1>zheshitest<h1/>";
    }
    @RequestMapping("/test1")
    public String test1(@RequestParam List<String> list){

        return list.size()+" "+list;
    }

}
